import fetch from 'common/src/utils/fetch';

function listStudentCourseScorePage(data) {
    return fetch({
        url: 'api/scoremanagementservice/studentScoreQuery/listMyScorePage',
        method: 'post',
        data
    });
}

function getPublishScores() {
    return fetch({
        url:
            'api/scoremanagementservice/studentScoreQuery/getAllowPublishScoreType',
        method: 'get'
    });
}

function myScoreStatistics() {
    return fetch({
        url: 'api/scoremanagementservice/studentScoreQuery/countStudentScore',
        method: 'get'
    });
}

const myScoreQueryApi = {
    listStudentCourseScorePage: listStudentCourseScorePage,
    myScoreStatistics: myScoreStatistics,
    getPublishScores: getPublishScores
};

export default myScoreQueryApi;
